package com.starhub.domain.knowledge.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.starhub.application.collection.dto.MetaDataLinkDto;
import com.starhub.application.collection.service.DataManipulationService;
import com.starhub.domain.knowledge.service.KnowledgeMetaDataService;

/**
 * 知识元数据服务实现类
 * @version: V1.0
 * @author: liuhf
 * @time 2025-06-09
 */
@Service
public class KnowledgeMetaDataServiceImpl implements KnowledgeMetaDataService {

    @Autowired
    private DataManipulationService dataManipulationService;

    @Override
    public boolean addTargetLinkData(MetaDataLinkDto metaDataLinkDto) {
        return dataManipulationService.addTargetLinkData(metaDataLinkDto);
    }
    
    @Override
    public boolean updateTargetLinkData(MetaDataLinkDto metaDataLinkDto) {
        return dataManipulationService.updateTargetLinkData(metaDataLinkDto);
    }

    @Override
    public boolean removeTargetLinkData(MetaDataLinkDto metaDataLinkDto) {
        return dataManipulationService.removeTargetLinkData(metaDataLinkDto);
    }

    @Override
    public boolean removeAllTargetLinkData(MetaDataLinkDto metaDataLinkDto) {
        return dataManipulationService.removeAllTargetLinkData(metaDataLinkDto);
    }
}
